package com.dream52.pms.base;

import java.util.HashMap;
import java.util.Map;

public interface PmsConstant {
	/** 右边房间信息 */ 
	public static int PMS_INDEX_PUSH_ROOM = 1;
	/** 左边房态统计信息 */
	public static int PMS_INDEX_PUSH_STATUS = 2;
	/**  左边房型统计信息 */
	public static int PMS_INDEX_PUSH_ROOM_TYPE = 3;

	/** sesseion string */
	final static String SESSION_USER = "SESSION_MANAGER_USER";
	/** sessionId string **/
	final static String SESSION_ID = "sessionId";
	/** session name **/
	final static String SESSION_ID_NAME = "SESSION";
	/** session.cached.id */
	final static String SESSION_CACHED_ID = "session.cached.id";
	/** 5005001 code no session ***/
	final static Integer ERROR_CODE_5005001 = 5005001;
	/** 5005001 code no cookies ***/
	final static Integer ERROR_CODE_5005002 = 5005002;
	/**用户超时*/
	final static Integer ERROR_CODE_5005003 = 5005003;
	
	/**授权超时*/
	final static Integer ERROR_CODE_5005004 = 5005004;
	
	/** 999999 all exception ***/
	final static Integer ERROR_CODE_999999 = 999999;
	/** error map */
	final static Map<Integer, String> ERROR_MAP = new HashMap<Integer, String>() {
		{
			put(ERROR_CODE_5005001, "the user is not exist session用户不存在");
			put(ERROR_CODE_5005002, "the user is not exist 用户不存在");
			put(ERROR_CODE_5005003, "the user expired 用户超时!");
			put(ERROR_CODE_5005004, "the user expired 用户授权超时!");
		}
	};
}